package com.huawei.hwid;

import android.os.Bundle;
import com.huawei.hwid.UseCase.RequestValues;

public final class b {
    private final c a;

    static final class a implements com.huawei.hwid.UseCase.a {
        private final com.huawei.hwid.UseCase.a a;
        private final b b;

        public a(com.huawei.hwid.UseCase.a aVar, b bVar) {
            this.a = aVar;
            this.b = bVar;
        }

        public void a(Bundle bundle) {
            this.b.a(bundle, this.a);
        }

        public void b(Bundle bundle) {
            this.b.b(bundle, this.a);
        }
    }

    static final class b implements Runnable {
        UseCase a;

        b(UseCase useCase) {
            this.a = useCase;
        }

        public void run() {
            this.a.c();
        }
    }

    public b(c cVar) {
        this.a = cVar;
    }

    public <T extends RequestValues> void a(UseCase<T> useCase, T t, com.huawei.hwid.UseCase.a aVar) {
        useCase.a((RequestValues) t);
        useCase.a(new a(aVar, this));
        this.a.a(new b(useCase));
    }

    public void a(Bundle bundle, com.huawei.hwid.UseCase.a aVar) {
        this.a.a(bundle, aVar);
    }

    private void b(Bundle bundle, com.huawei.hwid.UseCase.a aVar) {
        this.a.b(bundle, aVar);
    }
}
